import React from 'react'

//商品列表
export async function apiGetCommodityList(params) {
    return await React.$post('/admin/productInfo/page', params);
}
//商品类目
export async function apiGetCalssify(params) {
    return await React.$post('/admin/productClassify/openList', params);
}
//商品详情
export async function apiGetProductDetails(params) {
    return await React.$post('/admin/productInfo/getProductDetail', params);
}
//商品评价
export async function apiGetStoresEvaluation(params) {
    return await React.$post('/admin/storesEvaluation/page', params);
}
//商品评价-详情
export async function apiGetStoresEvaluationView(params) {
    return await React.$post('/admin/storesEvaluation/view', params);
}
//商品评价-删除
export async function apiGetStoresEvaluationDel(params) {
    return await React.$post('/admin/storesEvaluation/del', params);
}
//商品上下架
export async function apiProductInfoPutaway(params) {
    return await React.$post('/admin/productInfo/putaway', params);
}
//商品审核通过
export async function apiProductInfoApprove(params) {
    return await React.$post('/admin/productInfo/approve', params);
}
//商品审核驳回
export async function apiProductInfoRejected(params) {
    return await React.$post('/admin/productInfo/rejected', params);
}